<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../header.jsp">
	<jsp:param value="创建职位 - 后台管理" name="title"/>
</jsp:include>
<!-- 导入semantic的样式 -->
<link href="static/css/teacher.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	$(function() {
		$('.selection.dropdown,select.dropdown').dropdown();
	});
</script>
<link href="static/css/position.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="static/js/postion.js"></script>
</head>
<body>
	<jsp:include page="../menu/manage_menu.jsp"></jsp:include>
	<div class="teacher-content">
		<form  method="post" class="ui form create-form">
			<!-- 如果是新建这里没有值 -->
		  <input type="hidden" name="id" value="${po.id }">
		  <div class="field">
		    <label>职位名称</label>
		    <input type="text" name="pname"
			 <c:choose>
				<c:when test="${po.pname==null}">
				 value="${param.pname}"
				</c:when>
				<c:otherwise>
				 value="${po.pname}"
				</c:otherwise>
			</c:choose>
		    >
		  </div>	  
		  <div class="field">
		    <label>职位描述</label>
		    <input type="text" name="pdiscrible" value="${po.pdiscrible}"
		    <c:choose>
				<c:when test="${po.pdiscrible==null}">
				 value="${param.pdiscrible}"
				</c:when>
				<c:otherwise>
				 value="${po.pdiscrible}"
				</c:otherwise>
			</c:choose>		  
		    >
		  </div>
		  <button class="ui button" type="submit">${empty po ?'创建':'保存' }</button>
		  <span>${error}</span>
		</form>

	</div>
</body>
</html>